from django import forms
from mdeditor.fields import MDTextFormField
from django.forms import widgets
from mdeditor.widgets import MDEditorWidget
from bbs.models import Topic

class MDEditorForm (forms.Form):
    t_title = forms.CharField(label='', widget = widgets.Input(attrs={'class':"w-100", 'placeholder': '请输入标题'}))
    t_introduce = forms.CharField(label='', widget = widgets.Input(attrs={'class':"w-100", 'placeholder': '请输入简介'}))
    t_content = MDTextFormField(label='', widget = MDEditorWidget(attrs={'class':"h-100"}))
   
    